#ifndef _SOFT_SPI_H_
#define _SOFT_SPI_H_

/* Includes ------------------------------------------------------------------*/
#include "fm33lg0xx_fl.h"
#include "main.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#ifdef _SOFT_SPI_C_

#endif
/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */
#define SPI_MISO()                                          (FL_GPIO_GetInputPin(GPIOC, FL_GPIO_PIN_9))
/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
/* USER CODE BEGIN EFP */
void vSoftSPIInit(void);
uint8_t ucSPIWriteByte(uint8_t ucData);
void vSPIWrite(uint8_t *pucOutData, uint8_t *pucInData, uint8_t ucLen);
void vDelay(uint32_t ulTime);
/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */
#endif // _SOFT_SPI_H_
